package br.ufpb.bioinfo.bean;


import java.util.List;

import br.ufpb.bioinfo.dao.DAOOrganism;
import br.ufpb.bioinfo.model.Organism;

public class ResultBean {

	private List<Organism> organismList;
	
	public ResultBean(){
		
		DAOOrganism dao = new DAOOrganism();
		
		organismList = dao.findAll();
		
		for (Organism organism : organismList) {
			System.out.println(organism.getName());
		}
	}
	
	public List<Organism> getOrganismList() {
		return organismList;
	}

	public void setOrganismList(List<Organism> organismList) {
		this.organismList = organismList;
	}
	
}
